package day2.set.demo3_stu;

import java.util.TreeSet;

public class Test  {
    public static void main(String[] args) {
        TreeSet set = new TreeSet();
        set.add(new Stu("a1",23));
        set.add(new Stu("a2",24));
        set.add(new Stu("a3",24));
        set.add(new Stu("a3",24));
        System.out.println(set.size());

        for (Object o : set) {
            System.out.println(o);
        }

    }
}
